<template>
  <page-body>
    <view class="page">
      <view class="flex align-stretch benben-position-layout flex agreements_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex align-center justify-between flex-sub agreements_fd0_0'>
          <view class='flex align-center agreements_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
            <text class='fu-iconfont2  agreements_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex align-center'>
            <text class='agreements_fd0_0_c1_c0'>储物柜</text>
          </view>
          <view class='flex align-center agreements_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout">


        <view class='flex flex-direction align-stretch' v-for="(item,index) in dataList" :key="index"
          @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/homePage/detail/detail?aid=${item.aid}`">
          <view class='flex flex-wrap align-stretch Lockers_fd1_2_c0' v-if="item">
            <view class='flex flex-wrap align-center Lockers_fd1_2_c0_c0'>
              <image class='Lockers_fd1_2_c0_c0_c0' mode="aspectFill" :src='item.picture[0]'></image>
              <view class='flex flex-direction align-stretch Lockers_fd1_2_c0_c0_c1'>
                <text class='Lockers_fd1_2_c0_c0_c1_c0'>{{item.title}}</text>
                <view class='flex flex-wrap align-center justify-between flex-sub Lockers_fd1_2_c0_c0_c1_c1'>
                  <text class='Lockers_fd1_2_c0_c0_c1_c1_c0'>{{item.visiblerange_name}}</text>
                  <text class='Lockers_fd1_2_c0_c0_c1_c1_c1'>{{item.exhibition_name}}</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <text class='Lockers_fd1_2_c0_c0_c1_c2_c0'>编辑日期 {{item.update_time}}</text>
                </view>
              </view>
              <view class='flex flex-wrap align-center justify-between flex-sub Lockers_fd1_2_c0_c0_c2'>
                <view class='flex flex-wrap align-center'>
                  <image class='Lockers_fd1_2_c0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"171.png"'></image>
                  <text>{{item.likes}}</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <image class='Lockers_fd1_2_c0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"172.png"'></image>
                  <text>{{item.numberofcollections}}</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <view class='flex flex-wrap align-center Lockers_fd1_2_c0_c0_c2_c2_c0'>
                    <image class='Lockers_fd1_2_c0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"182.png"'></image>
                    <!-- <view class='flex flex-wrap align-center Lockers_fd1_2_c0_c0_c2_c2_c0_c1'>
                    </view> -->
                  </view>
                  <text>{{item.numberofcomments}}</text>
                </view>
                <view class='flex flex-wrap align-center'>
                  <image class='Lockers_fd1_2_c0_c0_c2_c0_c0' mode="aspectFit" :src='STATIC_URL+"183.png"'></image>
                  <text>{{item.viewcount}}</text>
                </view>
              </view>
            </view>
            <view class='flex flex-wrap align-center justify-between flex-sub'>
              <view class='Lockers_fd1_2_c1_c2'>储物柜到期时间 {{expirationtime}}</view>
              <button class='Lockers_fd1_2_c0_c1_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
                :data-url="`/pages/homePage/publishupdates/publishupdates?aid=${item.aid}`">编辑</button>
            </view>
          </view>
          <view class='flex flex-direction flex-wrap align-center Lockers_fd1_2_c0' v-if="!item"
            @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/homePage/publishupdates/publishupdates?storageboxid=${aid}&partitionid=${index+1}`">
            <image class='Lockers_fd1_2_c1_c0' mode="aspectFit" :src='STATIC_URL+"181.png"'></image>
            <text class='Lockers_fd1_2_c1_c1'>存储新内容</text>
            <text class='Lockers_fd1_2_c1_c2' style="height: 24rpx;"></text>
          </view>
          <!-- <view class='flex flex-direction flex-wrap align-center Lockers_fd1_2_c0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/homePage/publishupdates/publishupdates?aid=${aid}`">
            <image class='Lockers_fd1_2_c1_c0' mode="aspectFit" :src='STATIC_URL+"181.png"'></image>
            <text class='Lockers_fd1_2_c1_c1'>存储新内容</text>
            <text class='Lockers_fd1_2_c1_c2'>储物柜到期时间 2024-06-03 15:00</text>
          </view> -->
        </view>
      </view>

      <!---flex布局flex布局结束-->

    </view>
  </page-body>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "dataList": [],
        aid: '',
        expirationtime: ''
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.aid = options.aid

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getjc698cec19d9caFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //查询储物内容
      async getjc698cec19d9caFunc() {
        //请求方法
        //数据验证

        let datadataList = await this.$api.get(global.apiUrls.post6698cec19d9ca, {
          aid: this.aid
        });

        if (datadataList.data.code != 1) {
          this.$message.info(datadataList.data.msg);
          return
        }
        let infodataList = datadataList.data;
        this.dataList = infodataList.data[0].list
        this.expirationtime = infodataList.data[0].expirationtime

      }
    }
  };
</script>
<style lang="scss" scoped>
  .agreements_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .agreements_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
  }

  .agreements_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
  }

  .agreements_fd0_0_c0 {
    width: 180rpx;
  }

  .agreements_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .ben_fu-jyf-parser_1 {
    background-color: #fff;
    padding-left: 32rpx;
    padding-right: 32rpx;
    padding-top: 32rpx;
    padding-bottom: 32rpx;

  }

  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    // background: url(image-path('178.png')) no-repeat;
    background-size: 100% auto;
    padding-bottom: 32rpx;
  }

  .Lockers_flex_0 {
    // background: url(image-path('178.png')) no-repeat;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .Lockers_fd0_0_c2_c0 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .Lockers_fd0_0_c0 {
    width: 120rpx;
  }

  .Lockers_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .Lockers_fd1_2_c1_c2 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c1_c1 {
    margin: 16rpx 0rpx 0rpx 0rpx;
    font-size: 24rpx;
    color: rgba(153, 153, 153, 1);
  }

  .Lockers_fd1_2_c1_c0 {
    width: 80rpx;
    height: 80rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 80rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c1_c0 {
    background: linear-gradient(180deg, #176BE8 0%, #5A5CFC 100%);
    border-radius: 40rpx 40rpx 40rpx 40rpx;
    width: 144rpx;
    line-height: 56rpx;
    font-size: 28rpx;
    color: #fff;
    height: 56rpx;
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c0_c2_c2_c0_c1 {
    border: 2px solid #FFFFFF;
    background: #FF4646;
    width: 16rpx;
    height: 16rpx;
    position: absolute;
    right: 20rpx;
    top: 0rpx;
  }

  .Lockers_fd1_2_c0_c0_c2_c2_c0 {
    position: relative;
  }

  .Lockers_fd1_2_c0_c0_c2_c0_c0 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c0_c2 {
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c0_c1_c2_c0 {
    font-size: 24rpx;
    color: var(--benbenFontColor2);
  }

  .Lockers_fd1_2_c0_c0_c1_c1_c1 {
    color: var(--benbenFontColor5);
  }

  .Lockers_fd1_2_c0_c0_c1_c1_c0 {
    color: rgba(90, 92, 252, 1);
    font-size: 24rpx;
  }

  .Lockers_fd1_2_c0_c0_c1_c1 {
    margin: 16rpx 0rpx 16rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c0_c1_c0 {
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .Lockers_fd1_2_c0_c0_c1 {
    width: 430rpx;
  }

  .Lockers_fd1_2_c0_c0_c0 {
    width: 184rpx;
    height: 184rpx;
    border-radius: 16rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .Lockers_fd1_2_c0_c0 {
    border-bottom: 1px solid #eee;
    padding: 0rpx 0rpx 24rpx 0rpx;
  }

  .Lockers_fd1_2_c0 {
    background: var(--benbenbgColor1);
    margin: 24rpx auto 0rpx auto;
    padding: 24rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    width: 702rpx;
  }

  .Lockers_fd1_1_c0_c0_c2 {
    background: url(image-path('177.png')) no-repeat;
    background-size: 100% 100%;
    width: 277rpx;
    height: 50rpx;
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_1_c0_c0_c2s {
    background: url(image-path('204.png')) no-repeat;
    background-size: 100% 100%;
    width: 277rpx;
    height: 50rpx;
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .Lockers_fd1_1_c0_c0_c1 {
    width: 120rpx;
    height: 83rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 32rpx 0rpx 24rpx 0rpx;
  }

  .Lockers_fd1_1_c0_c0 {
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
    border-radius: 16rpx;
    padding: 16rpx;
    width: 307rpx;
  }

  .Lockers_fd1_1_c0 {
    background: url(image-path('176.png')) no-repeat;
    background-size: 100% 100%;
    padding: 16rpx;
    margin: 16rpx 0rpx 0rpx 24rpx;
  }

  .Lockers_fd1_0_c1 {
    margin: 4rpx 0rpx 0rpx 32rpx;
  }

  .Lockers_fd1_0 {
    background: #D7E6FB;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    width: 702rpx;
    height: 73rpx;
    margin: 0rpx auto 0rpx auto;
    padding: 0rpx 24rpx 0rpx 24rpx;
    font-size: 24rpx;
    color: rgba(23, 107, 232, 1);
  }
</style>
